package com.lyl.activiti.demo.listener;

import java.util.logging.Logger;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class BeforeScriptTask implements JavaDelegate {
	private static final Logger log = Logger.getLogger(BeforeScriptTask.class
			.getName());

	public void execute(DelegateExecution execution) throws Exception {
		log.info("in BeforeScriptTask");
		int[] inputArray={0,1,2,3,4,5,6,7,8,9,10};
		execution.setVariable("inputArray", inputArray);
		execution.setVariable("echo", "this is a test");
        log.info("variavles="+execution.getVariables());
	}

}
